package com.javamall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javamall.entity.BigType;
import com.javamall.entity.Product;

import java.util.List;
import java.util.Map;

/**
 * 商品mapper
 * @author: javaLiuwb
 * @date: 2024-02-14 10:23
 * @description:
 */

public interface ProductMapper extends BaseMapper<Product> {
    List<Product> list(Map<String, Object> map);

    Long getTotal(Map<String, Object> map);

    void add(Product product);

    void update(Product product);

    Product findById(Integer id);

}
